using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using VisualizationPackage.VectorField;

namespace VisualUI
{
    public partial class frmStreamRibon : Form
    {
        private List<StreamLine> _dataSource;
        public List<StreamLine> DataSource
        {
            get { return _dataSource; }
            set { _dataSource = value; }
        }
        private int _selectedStreamLine;
        public int SelectedStreamLine
        {
            get { return _selectedStreamLine; }
            set { _selectedStreamLine = value; }
        }


        public frmStreamRibon()
        {
            InitializeComponent();
        }

        private void frmStreamRibon_Load(object sender, EventArgs e)
        {
            cmbStreamLines.DataSource = DataSource;
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
            SelectedStreamLine = cmbStreamLines.SelectedIndex;
            Close();
        }

        private void lnkCancel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }
    }
}